#include <gtest/gtest.h>
#include <iostream>
using namespace std;

class Base
{
protected:
    int i;
public:
    explicit Base(int x)
    {
        i = x;
    }
};

class Derived : public Base
{
private:
    int i;
public:
    Derived(int x, int y):Base(x)
    {
        i = y;
    }
    void print()
    {
        cout << i + Base::i << endl;
    }
};

int classFieldCycle()
{
    Derived A(2,3);
    A.print();
    return 0;
}

TEST(classFieldCycleTest,test1){
    ASSERT_EQ(0,classFieldCycle());
}